package com.swjd.jingle.util;

public class Constant {
    /*网络请求的IP端口*/
    public static final String IP = "10.20.64.33";
    public static final String PORT = "8080";
    public static final String BASE_URL = "http://" + IP + ":" + PORT + "/jingle_server/action/";
    public static final String BASE_URL_FILE = "http://" + IP + ":" + PORT + "/jingle_server/file/";

    /*请求数据的接口字符串*/
    public static final String login = "login.do";//根据UserKey账号密码验证账号密码是否正确,并返回User对象
    public static final String register = "register.do";//通过User对象进行注册用户信息
    public static final String sendCode = "sendCode.do";//上传手机号获取短信验证码
    public static final String selectUserByPhone = "selectUserByPhone.do";//用户通过手机号登录并且通过验证
    public static final String selectAllTypeOne = "selectAllTypeOne.do";//查询所有类型(一对多)
    public static final String queryGoods = "queryGoods.do";//根据用户输入的内容进行模糊查询
    public static final String selectUserByGoods = "selectUserByGoods.do";//根据用户名查询商品数据

    /*上传下载文件图片*/
    public static final String img = "uploadImg.do";//上传文件
    public static final String imgs = "uploadImgs.do";//上传多个文件

    /*扫一扫类型*/
    public static final String scan_user = "scan_user";//扫描用户
    public static final String scan_goods = "scan_goods";//扫描商品

    /*下载文件存放的地址*/
    public static final String upFile = "upFile.";
    public static final String iconPath = upFile + "iconPath";
    public static final String goodsImgPath = upFile + "goodsImgPath";
    public static final String zipPath = upFile + "zipPath";

    /*二维码类型*/
    public static final int REQUEST_SCAN = 0;

    /*搜索类型
     * GOODS_TYPE 商品
     * USER_TYPE  用户
     * */
    public static final String GOODS_TYPE = "GOODS_TYPE";
    public static final String USER_TYPE = "USER_TYPE";

}
